package com.codingInn.web.listener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;
import org.springframework.web.context.support.ServletRequestHandledEvent;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@Component
public class ServletRequestEventListener implements ApplicationListener<ServletRequestHandledEvent> {
	final static Log logger = LogFactory.getLog(ServletRequestEventListener.class);
	@Override
	public void onApplicationEvent(ServletRequestHandledEvent event) {
		logger.info(event.getDescription());
	}
}
